package com.jrx.anytxn.reporting.mapper.ext;

import com.jrx.anytxn.reporting.entity.MrPaymentLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ExtMrPaymentLogMapper {
    /**
     * 批量更新账户信息
     *
     * @param mrPaymentLogList
     * @return
     */
    int batchUpdateMrPaymentLog(List<MrPaymentLog> mrPaymentLogList);

    /**
     * 批量插入账户信息
     *
     * @param mrPaymentLogList
     * @return
     */
    int batchInsertMrPaymentLog(List<MrPaymentLog> mrPaymentLogList);

    /**
     * 还款流水表
     * @param tenantId 租户id
     * @param loanId 贷款id
     * @param customerId 客户id
     * @return
     */
    List<MrPaymentLog> selectMrPaymentLogByTenantIdAndLoanIdAndCusId(@Param("tenantId") String tenantId, @Param("loanId")String loanId, @Param("customerId")String customerId);

    /**
     * 根据业务日期查询
     * @param businessDate
     * @return
     */
    List<MrPaymentLog> selectByBusinessDate(@Param("businessDate") Date businessDate);

}
